import Util from '../framework/util';

export const setDateOptions = (state, value) => {
    if (value && Util.isObject(value)) {
        Util.extend(state.dateOptions, value);
    }
};

export const setResources = (state, value) => {
    if (value) {
        state.resources = value;
    }
};

export const setMiniApps = (state, value) => {
    if (value && value.length > 0) {
        state.miniApps = value;
    }
};
export const setModules = (state, value) => {
    if (value) {
        state.modules = value;
    }
};